package cn.bugstack.openai.executor.model.baichuan.valobj;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author llq
 * @Description 对话消息
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Message {

    /**
     * 消息作者的角色，为以下其中之一
     * 1. user
     * 2. assistant
     */
    private String role;

    /**
     * 消息内容
     */
    private String content;
}
